﻿using GraphQL;
using GraphQL.Types;
using HotChocolate;

namespace dotnet_graphql_demo.Model
{
    public class OwnerInput
    {
        [GraphQLNonNullType]
        public string Name { get; set; }

        [GraphQLNonNullType]
        public string Address { get; set; }
    }

    public class OwnerInputType:InputObjectGraphType
    {
        public OwnerInputType()
        {
            Name = "OwnerInput";
            Field<NonNullGraphType<StringGraphType>>("name");
            Field<StringGraphType>("address");
        }
    }
}
